 |
 |
 |
 |
#314979 - 07/26/07 08:33 PM
[7.2.2] - Custom Title vs Title display
|
Enthusiast
Registered: 11/08/03
Posts: 490
Loc: SoCal
|
Simple modification that checks if a user has a Custom Title defined. If they do, then the Custom Title replaces the post based Title. (thanks to the pishmeister, who no one knows yet for this) If they don't have a Custom Title, then the post based Title will be displayed. Also does a small tweak to not include extra <br /> when the Rating system is turned off or the user doesn't have a rating. Right now it slams in a <br /> regardless. This saves some vertical space. Ok.. here goes. Open: /templates/default/post_side.tpl Find: {if $postrow[post].CustomTitle}
{$postrow[post].CustomTitle}
<br />
{/if}
{$postrow[post].Title}
<br />
{$postrow[post].Rating}
<br />Replace with: {if $postrow[post].CustomTitle}
{$postrow[post].CustomTitle}
{else}
{$postrow[post].Title}
{/if}
<br />
{if $postrow[post].Rating}
{$postrow[post].Rating}
<br />
{/if}done! Open: /templates/default/post_top.tpl Find: <span class="small">
{if $postrow[post].CustomTitle}
{$postrow[post].CustomTitle}
<br />
{/if}
{$postrow[post].Title}
</span>Replace with: <span class="small">
{if $postrow[post].CustomTitle}
{$postrow[post].CustomTitle}
{else}
{$postrow[post].Title}
{/if}
</span>Done! Open: /templates/default/post_comments.tpl Find: {if $postrow[post].CustomTitle}
{$postrow[post].CustomTitle}
<br />
{/if}
{$postrow[post].Title}
<br />
{$postrow[post].Rating}
<br />Replace with: {if $postrow[post].CustomTitle}
{$postrow[post].CustomTitle}
{else}
{$postrow[post].Title}
{/if}
<br />
{if $postrow[post].Rating}
{$postrow[post].Rating}
<br />
{/if}Done! Upload your files! Enjoy 
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#315403 - 08/24/07 02:23 PM
Re: [7.2] - Custom Title vs Title display
[Re: blaaskaak]
|
Enthusiast
Registered: 02/25/07
Posts: 329
Loc: The Netherlands
|
Enjoyed! Enjoy it even more? /scripts/online.inc.php find:
if ($CustomTitle) {
$Title = "$CustomTitle<br />$Title";
}
replace with:
if ($CustomTitle) {
$Title = $CustomTitle;
}
/scripts/showprofile.inc.php find:
$smarty_data = array(
"profileuser" => $profileuser,
"Fakeemail" => $Fakeemail,
"Picture" => $Picture,
"width" => $width,
"height" => $height,
"User" => $User,
"Title" => "$Title<br /> $CustomTitle",
replace with:
if ($CustomTitle) { $title=$CustomTitle; };
$smarty_data = array(
"profileuser" => $profileuser,
"Fakeemail" => $Fakeemail,
"Picture" => $Picture,
"width" => $width,
"height" => $height,
"User" => $User,
"Title" => $Title,
this will take of who's online and the userprofile screen!
Edited by blaaskaak (08/24/07 02:41 PM)
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#316286 - 11/09/07 04:30 AM
Re: [7.2.x] If Custom Title
[Re: sirdude]
|
Wizard
Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|